Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Drawing Appearance-Compliant Menus /


GetThemeMenuSeparatorHeight

NEW WITH THE APPEARANCE MANAGER

Gets the height of a menu separator line for the current theme.

pascal OSStatus GetThemeMenuSeparatorHeight (SInt16 *outHeight);
outHeight
On output, the height (in pixels) of the menu separator line.
function result
A result code; see "Result Codes".
DISCUSSION
The GetThemeMenuSeparatorHeight function should be called when you are writing your own menu definition function and wish to calculate a menu rectangle for a separator to match the current theme.

SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling the GetThemeMenuSeparatorHeight function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998